<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>获取验证码</title>
</head>
<body onload="getVerify()">

    <h3>点击图片切换验证码</h3>
    <img id="img-verify" src="" alt="更换验证码" height="36" onclick="getVerify()">

</body>
<script>
    //获取验证码
    function getVerify(){
        document.getElementById("img-verify").src="http://localhost:8081/getCode?"+Math.random();
    }
</script>
</html>
